﻿using HenuAlbum.Identity;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;

namespace HenuAlbum.Models
{
    public class Comments
    {
        public int Id { get; set; }

        public int CommentatorId { get; set; }

        public User Commentator { get; set; }

        public int AlbumId { get; set; }

        public Album Album { get; set; }

        [Required]
        [MaxLength(512)]
        public string Content { get; set; }

        [Required]
        public ReviewState ReviewState { get; set; } = ReviewState.Unreviewed;

        [Required]
        public DateTime CommentTime { get; set; }
    }
}
